from django import forms
from django.forms import ModelForm

from Core import models


class UserSignIn(forms.Form):
    name = forms.CharField(max_length=200, help_text='User Name')
    password = forms.CharField(max_length=128, help_text='Password')


class User(ModelForm):
    class Meta:
        model = models.User
        fields = ['name', 'nickname', 'password', 'mail']


class Account(ModelForm):
    class Meta:
        model = models.Account
        fields = ['platform', 'name', 'account', 'password', 'notes']


class AccountPlatform(ModelForm):
    class Meta:
        model = models.AccountPlatform
        fields = ['name']


class AccountExtraInfo(ModelForm):
    class Meta:
        model = models.AccountExtraInfo
        fields = ['name', 'value']
